package com.sunwayhorizo.health.business.integration.model;

import java.io.Serializable;
import java.sql.Timestamp;

import org.hibernate.validator.constraints.*;

public class InHospitalInfo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int id;
	
	/**
	 * 患者编码
	 */
	@NotEmpty
	@Length(max = 200)
	private String nature_id;
	
	/**
	 * 费别
	 */
	@Length(max = 20)
	private String chatgetype;
	
	/**
	 * 住院号
	 */
	@NotEmpty
	@Length(max = 100)
	private String hospitalzation_no;
	
	/**
	 * 住院次数
	 */
	@Length(max = 10)
	private String encounter_num;
	
	/**
	 * 入院登记时间
	 */
	private Timestamp admission_time;
	
	/**
	 * 联系人
	 */
	@Length(max = 100)
	private String link_man;
	
	/**
	 * 联系方式
	 */
	@Length(max = 100)
	private String linkman_way;
	
	/**
	 * 联系人关系
	 */
	@Length(max = 50)
	private String linkman_relations;
	
	/**
	 * 入院方式
	 */
	@Length(max = 50)
	private String admission_way;
	/**
	 * 入院目的
	 */
	@Length(max = 50)
	private String admission_purpose;
	/**
	 * 门诊诊断
	 */
	@Length(max = 100)
	private String outpat_diagnose;
	/**
	 * 门诊接诊医生
	 */
	@Length(max = 200)
	private String out_doctor;
	/**
	 * 入院科室
	 */
	@Length(max = 200)
	private String dept;
	/**
	 * 操作员信息
	 */
	@Length(max = 200)
	private String operator_by;

	@Override
	public String toString() {
		return "InHospitalInfo [\n患者编码=" + nature_id + ",\n 费别="
				+ chatgetype + ",\n 住院号=" + hospitalzation_no
				+ ",\n 住院次数=" + encounter_num + ",\n 入院登记时间="
				+ admission_time + ",\n 联系人=" + link_man
				+ ",\n 联系人" + linkman_way + ",\n 联系人关系="
				+ linkman_relations + ",\n 入院方式=" + admission_way
				+ ",\n 入院目的=" + admission_purpose
				+ ",\n 门诊诊断=" + outpat_diagnose + ",\n 门诊接诊医生="
				+ out_doctor + ",\n 入院科室=" + dept + ",\n 操作员信息="
				+ operator_by + "]";
	}

	public InHospitalInfo(String nature_id, String chatgetype,
			String hospitalzation_no, String encounter_num,
			Timestamp admission_time, String link_man, String linkman_way,
			String linkman_relations, String admission_way,
			String admission_purpose, String outpat_diagnose,
			String out_doctor, String dept, String operator_by) {
		super();
		this.nature_id = nature_id;
		this.chatgetype = chatgetype;
		this.hospitalzation_no = hospitalzation_no;
		this.encounter_num = encounter_num;
		this.admission_time = admission_time;
		this.link_man = link_man;
		this.linkman_way = linkman_way;
		this.linkman_relations = linkman_relations;
		this.admission_way = admission_way;
		this.admission_purpose = admission_purpose;
		this.outpat_diagnose = outpat_diagnose;
		this.out_doctor = out_doctor;
		this.dept = dept;
		this.operator_by = operator_by;
	}

	public InHospitalInfo() {
		super();
	}

	public InHospitalInfo(String str) {
		super();
		this.nature_id = "467990";
		this.chatgetype = "0|自费";
		this.hospitalzation_no = "21321321321";
		this.encounter_num = "12";
		this.admission_time =new Timestamp(122312321321l);
		this.link_man = "哀老伟";
		this.linkman_way = "13444444444";
		this.linkman_relations = "1|一家子";
		this.admission_way = "DirectAdmission";
		this.admission_purpose = "Treatment";
		this.outpat_diagnose = "F31.001|双相情感障碍，目前为轻躁狂发作";
		this.out_doctor = "12522|武士杰";
		this.dept = "1030100|呼吸科";
		this.operator_by = "10912|鹿翠香";
	}

	public String getNature_id() {
		return nature_id;
	}

	public void setNature_id(String nature_id) {
		this.nature_id = nature_id;
	}

	public String getChatgetype() {
		return chatgetype;
	}

	public void setChatgetype(String chatgetype) {
		this.chatgetype = chatgetype;
	}

	public String getHospitalzation_no() {
		return hospitalzation_no;
	}

	public void setHospitalzation_no(String hospitalzation_no) {
		this.hospitalzation_no = hospitalzation_no;
	}

	public String getEncounter_num() {
		return encounter_num;
	}

	public void setEncounter_num(String encounter_num) {
		this.encounter_num = encounter_num;
	}



	public Timestamp getAdmission_time() {
		return admission_time;
	}

	public void setAdmission_time(Timestamp admission_time) {
		this.admission_time = admission_time;
	}

	public String getLink_man() {
		return link_man;
	}

	public void setLink_man(String link_man) {
		this.link_man = link_man;
	}

	public String getLinkman_way() {
		return linkman_way;
	}

	public void setLinkman_way(String linkman_way) {
		this.linkman_way = linkman_way;
	}

	public String getLinkman_relations() {
		return linkman_relations;
	}

	public void setLinkman_relations(String linkman_relations) {
		this.linkman_relations = linkman_relations;
	}

	public String getAdmission_way() {
		return admission_way;
	}

	public void setAdmission_way(String admission_way) {
		this.admission_way = admission_way;
	}

	public String getAdmission_purpose() {
		return admission_purpose;
	}

	public void setAdmission_purpose(String admission_purpose) {
		this.admission_purpose = admission_purpose;
	}

	public String getOutpat_diagnose() {
		return outpat_diagnose;
	}

	public void setOutpat_diagnose(String outpat_diagnose) {
		this.outpat_diagnose = outpat_diagnose;
	}

	public String getOut_doctor() {
		return out_doctor;
	}

	public void setOut_doctor(String out_doctor) {
		this.out_doctor = out_doctor;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getOperator_by() {
		return operator_by;
	}

	public void setOperator_by(String operator_by) {
		this.operator_by = operator_by;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}


}
